<?php echo $header; ?><?php echo $column_left; ?>
<div class="d4-col-right right">
			<?php echo $menu_content;?>
			
						
			<div class="padder">
				<div class="page-head button-level">
					<h3>Chi tiết đơn đặt hàng - #<?php echo $order_id; ?></h3>
				</div>
				<ul class="tabs">
                    <li class="active last"><a href="index.php?route=account/account" onclick="return false;">1. Thông tin người mua</a></li>   
                </ul>
				
				<table style="font-size:12px;" cellspacing="10">
					<tr><td>Họ tên : </td><td><?php echo $name ?></td></tr>
					<tr><td>Email : </td><td> <?php echo $email; ?></td></tr>
					<tr><td>Điện thoại : </td><td><?php echo $telephone; ?></td></tr>
					<tr><td>Mobile : </td><td><?php echo $fax; ?></td></tr>
					<tr><td>Địa chỉ : </td><td><?php echo $shipping_address; ?></td></tr>
				</table>

				<ul class="tabs">
                    <li class="active last"><a href="#" onclick="return false;">2. Chi tiết đơn hàng</a></li>   
                </ul>

				<table style="font-size:12px;" cellspacing="0" class="data-table" id="my-orders-table">
					<colgroup>
						<col width="1">
						<col>
						<col width="1">
						<col width="1">
						<col width="1">
					</colgroup>
					<thead>
						<tr class="first last">
							<th>STT</th>
							<th>Tên sản phẩm</th>
							<th class="a-right">Giá bán</th>
							<th class="a-center">Số lượng</th>
							<th class="a-right">Tổng</th>
						</tr>
					</thead>
					<tbody>
						<?php $stt = 0;$total=0;?>
						<?php foreach ($products as $product){?>
						<?php $stt++;$total+=  $product['total']; ?>
						<tr class="border first last odd">
							<td><?php echo $stt; ?></td>
							<td><h5 class="title"><?php echo $product['name']; ?></h5></td>
							<td class="a-right nowrap">
								<?php echo $product['price']; ?> VNĐ
							</td>
							<td class="a-right nowrap">
								<span class="nobr">
									<strong><?php echo $product['quantity']; ?></strong> / <?php echo $product['unit']; ?><br>
								</span>
							</td>
							<td class="a-right nowrap last">
								<?php echo $product['total']; ?> VNĐ
							</td>
						</tr>  
						<?php }?> 										
					</tbody>
					<tfoot>
						<tr class="first">
							<td colspan="4" class="a-right">Tổng giá trị : </td>
							<td class="last a-right"><span class="price"><?php echo $total;?> VNĐ</span></td>
						</tr>
					</tfoot>
				</table>
				<br/>
				<ul class="tabs">
                    <li class="active last"><a href="#" onclick="return false;">3. Thông tin chuyển hàng</a></li>   
                </ul>
				
				<table cellpadding="4" cellspacing="4" style="font-size:12px;">
						<tr>
							<td>Địa chỉ giao hàng : </td>
							<td><?php echo $shipping_address; ?></td>
						</tr>
						<tr>
							<td>Thời gian giao hàng : </td>
							<td>
								<?php echo $shipping_time; ?>
							</td>
						</tr>
						<tr>
							<td>Yêu cầu khác : </td>
							<td><?php echo $comment; ?></td>
						</tr>
					</table>
					
				<div class="button-set">
					<a href="index.php?route=account/history" class="f-left">« Trở lại danh sách đơn hàng</a>
				</div>
			</div>
		</div>
<?php echo $footer; ?> 